<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template greater_equal</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../reference_section_of_pfr.html#doxygen.reference_section_of_pfr.functors_8hpp" title="Header &lt;boost/pfr/functors.hpp&gt;">
<link rel="prev" href="structboost_1_1pfr_1_1greater.html" title="Struct template greater">
<link rel="next" href="structboost_1_1pfr_1_1hash.html" title="Struct template hash">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1pfr_1_1greater.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../reference_section_of_pfr.html#doxygen.reference_section_of_pfr.functors_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1pfr_1_1hash.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="doxygen.reference_section_of_pfr.structboost_1_1pfr_1_1greater__equal"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template greater_equal</span></h2>
<p>boost::pfr::greater_equal — std::greater_equal like comparator that returns  <a class="link" href="../../"> boost::pfr::ge </a>(x, y) </p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../reference_section_of_pfr.html#doxygen.reference_section_of_pfr.functors_8hpp" title="Header &lt;boost/pfr/functors.hpp&gt;">boost/pfr/functors.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> T <span class="special">=</span> <span class="keyword">void</span><span class="special">&gt;</span> 
<span class="keyword">struct</span> <a class="link" href="structboost_1_1pfr_1_1greater__equal.html" title="Struct template greater_equal">greater_equal</a> <span class="special">{</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">true_type</span> <a name="doxygen.reference_section_of_pfr.structboost_1_1pfr_1_1greater__equal_1afb7971c17f3a76234d7e6c4718baec42"></a><span class="identifier">is_transparent</span><span class="special">;</span>  <span class="comment">// This typedef exists only if T <span class="bold"><strong>is</strong></span> void. </span>

  <span class="comment">// <a class="link" href="../reference_section_of_boost_any/classboost_1_1anys_1_1basic__any.html#id3-bb">public member functions</a></span>
  <span class="keyword">bool</span> <a class="link" href="structboost_1_1pfr_1_1greater__equal.html#doxygen.reference_section_of_pfr.structboost_1_1pfr_1_1greater__equal_1a3d377fda4d1010a70b1b47aadfeb67a9"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> V<span class="special">,</span> <span class="keyword">typename</span> U<span class="special">&gt;</span> <span class="keyword">bool</span> <a class="link" href="structboost_1_1pfr_1_1greater__equal.html#doxygen.reference_section_of_pfr.structboost_1_1pfr_1_1greater__equal_1a14aa4407ba007474d72f755a29e741d6"><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">V</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">U</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.27.10.7.8.4"></a><h2>Description</h2>
<div class="refsect2">
<a name="id-1.3.27.10.7.8.4.2"></a><h3>
<a name="id3-bb"></a><code class="computeroutput">greater_equal</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="doxygen.reference_section_of_pfr.structboost_1_1pfr_1_1greater__equal_1a3d377fda4d1010a70b1b47aadfeb67a9"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> x<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">T</span> <span class="special">&amp;</span> y<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>
</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p><span class="bold"><strong>true</strong></span> if field of <span class="bold"><strong>x</strong></span> greater than the field with same index of <span class="bold"><strong>y</strong></span> and all previous fields of <span class="bold"><strong>x</strong></span> equal to the same fields of <span class="bold"><strong>y</strong></span>; or if each field of <span class="bold"><strong>x</strong></span> equals the field with same index of <span class="bold"><strong>y</strong></span>. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> V<span class="special">,</span> <span class="keyword">typename</span> U<span class="special">&gt;</span> 
  <span class="keyword">bool</span> <a name="doxygen.reference_section_of_pfr.structboost_1_1pfr_1_1greater__equal_1a14aa4407ba007474d72f755a29e741d6"></a><span class="keyword">operator</span><span class="special">(</span><span class="special">)</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">V</span> <span class="special">&amp;</span> x<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">U</span> <span class="special">&amp;</span> y<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>This operator allows comparison of <span class="bold"><strong>x</strong></span> and <span class="bold"><strong>y</strong></span> that have different type. 
</p>
<div class="variablelist"><table border="0" class="variablelist compact">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term">Requires:</span></p></td>
<td><p>Exists only if T <span class="bold"><strong>is</strong></span> void. </p></td>
</tr></tbody>
</table></div>
</li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2016-2025 Antony Polukhin<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="structboost_1_1pfr_1_1greater.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../reference_section_of_pfr.html#doxygen.reference_section_of_pfr.functors_8hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="structboost_1_1pfr_1_1hash.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
